package com.hmy.finance.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmy.finance.dal.po.DeviceSignedRentalRo;
import com.hmy.finance.dal.po.ReconciliationDeviceStatementPo;
import com.hmy.finance.dal.po.ReconciliationStatementRo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songkf
 * @description 针对表【reconciliation_device_statement(设备子对账单)】的数据库操作Mapper
 * @createDate 2024-02-21 18:55:01
 * @Entity com.hmy.finance.dal.po.ReconciliationDeviceStatementPo
 */
public interface ReconciliationDeviceStatementMapper extends BaseMapper<ReconciliationDeviceStatementPo> {

    Integer batchInsertDevices(@Param("list") List<ReconciliationDeviceStatementPo> deviceDetails);

    List<ReconciliationStatementRo> selectRecordsByContractIdsAndDeviceIds(@Param("list") List<ReconciliationDeviceStatementPo> list);


    List<DeviceSignedRentalRo> selectSignedRentRecordsByDeviceRentalRecordIds(@Param("list") List<Long> list);

}




